﻿using System;

struct Books
{
    private string title;
    private string author;
    private string subject;
    private int book_id;

    public void SetValues(string t, string a, string s, int id)
    {
        title = t;
        author = a;
        subject = s;
        book_id = id;
    }

    public void Display()
    {
        Console.WriteLine("Title : {0}", title);
        Console.WriteLine("Author : {0}", author);
        Console.WriteLine("Subject : {0}", subject);
        Console.WriteLine("Book_id : {0}", book_id);
    }
};

public class TestStructure
{
    public static void Main(string[] args)
    {
        Books book1 = new Books(); /* 声明 book1，类型为 Books */
        Books book2 = new Books(); /* 声明 book2，类型为 Books */

        /* book 1 详述 */
        book1.SetValues("C Programing", "Nuha Ali", "C Programing Tutorial", 6495407);

        /* book 2 详述 */
        book2.SetValues("Telecom Billing", "Zara Ali", "Telecom Billing Tutorial", 6495700);

        /* 打印 Book1 信息 */
        book1.Display();

        /* 打印 Book2 信息 */
        book2.Display();

        Console.ReadKey();
    }
}